package flexserverlib.messaging.services.messaging.adapters.support;

/**
 * Copyright (c) <year> <copyright holders>
 * Created by IntelliJ IDEA.
 * Created By: Andrew Powell
 * Date: Nov 25, 2008
 * Time: 11:20:43 AM
 */
public class MailControl {

    public static final int POP3 = 1;
    public static final int IMAP = 2;

    private int serverType = POP3;
    private int serverPort = 110;
    private String serverAddress;
    private String userName;
    private String password;
    private boolean useSSL;

    public MailControl() {
    }

    public int getServerType() {
        return serverType;
    }

    public void setServerType(int serverType) {
        this.serverType = serverType;
    }

    public int getServerPort() {
        return serverPort;
    }

    public void setServerPort(int serverPort) {
        this.serverPort = serverPort;
    }

    public String getServerAddress() {
        return serverAddress;
    }

    public void setServerAddress(String serverAddress) {
        this.serverAddress = serverAddress;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isUseSSL() {
        return useSSL;
    }

    public void setUseSSL(boolean useSSL) {
        this.useSSL = useSSL;
    }
}
